#!/usr/bin/env bash

# Filename     :	openldap-install.sh
# Last modified:	2023-01-10 12:12
# Version      :
# Author       : jack.zang
# Email        : jack.zang@aishangwei.net
# Description  :
# 使用方法：source <(curl -sL https://gitee.com/jack_zang/public-scripts/raw/master/shell/opendlap/openldap-install.sh)
# ******************************************************

mkdir -pv /data/ldap/{data,conf}
docker run -p 389:389 -p 636:636 \
    --name my-openldap-container \
    --env LDAP_TLS_VERIFY_CLIENT="never" \
    --env LDAP_ORGANISATION="Aishangwei" \
    --env LDAP_DOMAIN="xiodi.cn" \
    --env LDAP_ADMIN_PASSWORD="Xiodi.cn123" \
    -v /data/ldap/data:/var/lib/ldap  \
    -v /data/ldap/conf:/etc/ldap/slapd.d   \
    --detach osixia/openldap:1.5.0












